﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace 学生管理系统
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string user = "宋文浩";
        string password = "2018131351";
        private void Login_btn_Click(object sender, EventArgs e)
        {
            if (userName_txtbox.Text == user && passWord_txtbox.Text == password)
            {
                this.Hide();
                Form4 form4 = new Form4();
                form4.Show();
            }
            else
            {
                MessageBox.Show("用户名或密码错误", "登陆失败");
            }
        }

        
    }
}
